/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package parser8051;

/**
 *
 * @author Wojtek
 */
public class Instruction {

    public String name;
    public String[] arguments;

    public Instruction(String name, String[] arguments) {
	this.name = name;
	this.arguments = arguments;
    }

    public String toString() {
	String output = this.name + ": ";
	if (this.arguments != null) {
	    for (int i = 0; i < this.arguments.length; i++) {
		output = output.concat(this.arguments[i] + ", ");
	    }
	}
	return output;
    }
}